#ifndef TMAUDIOWORKER_H
#define TMAUDIOWORKER_H

#include <QObject>
#include <QTimer>
#include <QFile>

class TMAudioWorker : public QObject
{
    Q_OBJECT
public:
    explicit TMAudioWorker(QObject *parent = 0);

    QTimer* pr_Timer;

signals:
    void sig_ttsState(bool m_bIsPlaying);

    void sig_mediaState(bool m_bIsPlaying);

public slots:
    void slot_ttsState();

    void slot_ttsPlay(QString str_tts);
    void slot_ttsPlayParams(QString str_tts);
    void slot_ttsPlayFile(QString filePath);
    void slot_ttsSetVolume(int nVolume);
    void slot_ttsStop();

    void slot_asrBuild(QString filePath);
    void slot_asrStart(int nMaxTime);
    void slot_asrStop();

    void slot_mediaPlay(QString filePath);
    void slot_mediaVolume(int nVolume);
    void slot_mediaStop();



private:

};

#endif // TMAUDIOWORKER_H
